package sys

import (
	v1 "faker/project-public/api/v1"
	"github.com/gin-gonic/gin"
)

type RuleRouter struct {
}

func (u *RuleRouter) InitRuleRouter(Router *gin.RouterGroup) {
	ruleRouter := Router.Group("rule")
	ruleApi := v1.ApiGroupApp.SystemApiGroup.SysRuleApi
	{
		ruleRouter.POST("createRule", ruleApi.CreateRule)         // 新增rule
		ruleRouter.POST("getRuleInfo", ruleApi.GetRuleInfo)       // 查询rule
		ruleRouter.POST("getRuleList", ruleApi.GetRuleList)       // 查询rule列表
		ruleRouter.PUT("setRuleInfo", ruleApi.SetRuleInfo)        // 设置rule
		ruleRouter.POST("deleteRule", ruleApi.DeleteRule)         // 删除rule
		ruleRouter.POST("getAllRuleList", ruleApi.GetAllRuleList) // 获取全部rule
	}
}
